<template>
	<view class="wanl-money">
		<view class="bg-orange padding-bj">
			<text class="title">旅游券</text>
			<view class="margin-top margin-bottom-xs">
				<text class="text-sl">{{lyqye}}</text><br>
				
			</view>
		</view>
		
		<view class="cu-list menu sm-border">
			
			<view class="cu-item arrow" @tap="$wanlshop.to('/pages/user/money/lyqyelog')">
				<view class="content">
					<text class="wlIcon-yue1 text-orange"></text>
					<text>明细</text>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex';
	import wx from 'weixin-js-sdk'
	export default {
		data() {
			return {
				lyqye: 0
			};
		},
		computed: {
			...mapState(['user'])
		},
		onLoad() {
			this.loadData();
		},
		methods: {
			async loadData() {
				this.$api.post({
					url: '/wanlshop/user/getLyq',
					success: res => {
						this.$store.commit('user/setUserInfo', {
							lyqye: res
						});
						this.lyqye = res
						// console.log(res)
					}
				});
			}
		}
	};
</script>

<style>
	.wanl-money .title {
		color: rgba(255, 255, 255, .7);
	}

	.text-sl {
		font-size: 32rpx;
	}
</style>